/**
 * Created with IntelliJ IDEA.
 * User: ajhin
 * Date: 2/25/14
 * Time: 8:34 AM
 * To change this template use File | Settings | File Templates.
 */
package com.societyGames.codeAlong.user
{

public class UserDataError
{
  public static const OPEN_FAILED:UserDataError = new UserDataError("OPEN_FAILED"); //Opening the shared object failed.
  public static const EMPTY:UserDataError = new UserDataError("EMPTY"); //The shared object opened but didn't have anything
  public static const FLUSH_FAILED:UserDataError = new UserDataError("FLUSH_FAILED"); //Attempted write failed. Only attempted when the thing is empty
  public static const INCOMPATIBLE_VERSION:UserDataError = new UserDataError("INCOMPATIBLE_VERSION");
  public static const CORRUPT:UserDataError = new UserDataError("CORRUPT");
  public static const SUCCESS:UserDataError = new UserDataError("SUCCESS");

  private var _type:String;

  public function get type():String
  {
    return _type;
  }

  public function UserDataError(type:String)
  {
    _type = type;
  }
}
}
